package com.charge.dao;

import com.charge.domain.UserSpendingType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Description :
 * Author : 91658
 * Date : 2018/6/7 17:42
 **/
@Component
public interface UserSpendingTypeMapping {

    int insertSelective(UserSpendingType record);

    UserSpendingType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserSpendingType record);

    List<UserSpendingType> selectAllSpending(UserSpendingType userSpendingType);

    Integer selectIdByName(@Param("spendingName") String spendingName);

}
